$(function () {
    $(window).on('scroll', function () {
        let scrolled = document.documentElement.scrollTop;
        if (scrolled > 50) {
            $('header').addClass('bgcolor');
            $('.head-wrap-logo img').attr('src',"./img/head/logo-2.png")
        }else{
            $('header').removeClass('bgcolor');
            $('.head-wrap-logo img').attr('src',"./img/head/logo.png")
        }

    })    
})
